﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Core.Exceptions
{
    /// <summary>
    /// Exception thrown when attempting to activate an object has failed.
    /// </summary>
    public class ObjectActivationException : ApplicationException
    {
        public ObjectActivationException(Exception innerexception = null)
            : base("Unable to create an instance of the service associated to the request.", innerexception) { }
        public ObjectActivationException(Type serviceType, Exception innerException = null)
            : base("Unable to create an instance of " + serviceType.FullName + " associated to the request.", innerException) { }
    }
}
